<style>
    .input-group .input-group-addon{background-color:#eee}
</style>
<script type="text/javascript">
    var area={$area};
    var item_id={$itemid};
</script>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input type="hidden" name="row[itemid]" value="{$itemid}" />
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-1">评估日期:</label>
        <div class="col-xs-12 col-sm-2">
            <input id="c-prereport_time" data-rule="required" class="form-control input-middle datetimepicker" name="row[prereport_time]" type="text"
                value="{$prereport_time_str}" data-date-format="YYYY-MM-DD" data-use-current="true">
        </div>
        <label class="control-label col-xs-12 col-sm-1">证书编号:</label>
        <div class="col-xs-12 col-sm-2">
            <input id="c-prereport_no" readonly type="text" data-rule="required" class="form-control change" name="row[prereport_no]" 
            value="{$row.prereport_no|htmlentities}" />
        </div>
        <label class="control-label col-xs-12 col-sm-1">版本号:</label>
        <div class="col-xs-12 col-sm-2">
            <input id="c-prereport_version" readonly type="text" data-rule="required" class="form-control change" name="row[prereport_version]" 
            value="{$row.prereport_version|htmlentities}" />
        </div>
        <label class="control-label col-xs-12 col-sm-1">变更记录:</label>
        <div class="col-xs-12 col-sm-2">
            <a href="javascript:;" id="link-viewversion" class="btn btn-sm btn-default">查看变更记录</a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-1">单价:</label>
        <div class="col-xs-12 col-sm-2">
            <div class="input-group">
                <input id="c-prereport_unit" type="number" name="row[prereport_unit]" class="form-control change" value="{$row.prereport_unit|htmlentities}" />
                <div class="input-group-addon">元/m<sup>2</sup></div>
            </div>
        </div>
        <label class="control-label col-xs-12 col-sm-1">预评总价:</label>
        <div class="col-xs-12 col-sm-2">
            <div class="input-group">
                <input id="c-prereport_total" type="number" name="row[prereport_total]" class="form-control change" value="{$row.prereport_total|htmlentities}" />
                <div class="input-group-addon">万元</div>
            </div>
        </div>
        <label class="control-label col-xs-12 col-sm-1">评估师:</label>
        <div class="col-xs-12 col-sm-2">
            <input id="c-prereport_appraiser_id" data-rule="required" data-source="assessment/appraisers/index" data-field="appraiser_name"
             class="form-control selectpage change" name="row[prereport_appraiser_id]" type="text"
             value="{$row.prereport_appraiser_id}" >
        </div>
     
    </div>
    <div class="form-group">
        <div class="col-xs-12 col-sm-12">
            <textarea id="c-prereport_contents" data-rule="required" class="form-control editor" rows="5" name="row[prereport_contents]" cols="50">{$row.prereport_contents}</textarea>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-12 col-xs-12">
            ${PREREPORT_UNIT} 评估单价
            ${PREREPORT_TOTAL} 评估总价
            ${PRICE_TOTLE_CHINESE} 评估总价大写
            ${PREREPORT_NO} 证书编号
            ${PREREPORT_TIME}评估日期
            ${DATE_UPPER} 评估日期大写
            ${PICTURES} 图片
            ${PAGE} 分页
            ${ADDRESS} 地址
            ${PROPERTY_NUM} 
            ${PLANPURPOSE} 土地用途
            ${STRUCTURE} 结构
            ${AGE} 建筑年代
            ${AREA} 面积
            ${LANDRIGHT} 土地使用权性质
            ${RIGHTTYPE} 权利类型
            ${FLOORCOUNT} 总层高
            ${LOCATION_FLOOR}所在层
            ${FINISHYEAR}竣工日期
            ${SHARETYPE}共有情况
            ${SHAREAREA}分摊面积
            ${RIGHTLIMIT}使用权止
        </div>
    </div>
   
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
